import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';

import { CommonHttpService } from './common/common-http-service';
@Injectable()
export class VideoListService extends CommonHttpService{
  constructor(public httpClient: HttpClient
  ) {
    super(httpClient);
    console.log(httpClient);


  }
  /**
   * 获取视频列表
   */
  public getVideoList(url): Observable<any> {
    // let url = `campaign/banner`;
    // console.log(this.get(url))
    return this.get(url);
  }

  public postVideoList(currentPage:any): Observable<any> {
    let url ='campaign/getVideoList';

    return this.post(url,{currentPage:currentPage});
  }

  public getWatchedVideo(): Observable<any> {
    let url =`video/getWatchedVideos`;

    return this.get1(url);
  }



  public getPaidVideos(): Observable<any> {
    let url =`service/getPaidVideos`;

    return this.get1(url);
  }



  public getNotpayOrder(): Observable<any> {
    let url =`order/getNotPayOrders`;

    return this.get1(url);
  }

}
